<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title></title>
    <link rel="stylesheet" href="images/table.css" type="text/css"></link>
  	<script type="text/javascript" src="js/jquery-1.8.2.js"></script> 
    <script type="text/javascript" src="js/tableScoll.js"></script>
    <script type="text/javascript" src="js/store.js"></script> 
    <script type="text/javascript" src="js/Calendar3.js"></script> 
</head>
  <body>
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">设备调整</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	      <tr>
	        <td colspan="2" valign="top">&nbsp;</td>
	        <td>&nbsp;</td>
	        <td valign="top">&nbsp;</td>
	      </tr>
	      <tr>
	        <td colspan="2" valign="top">
	      		<!--  控件按钮栏-->
		       <input type="button" name="storeAdjustSave"  id="storeAdjustSave"  value="保存" />
		     </td>
		     <td>&nbsp;</td>
		  </tr>
		  <tr>
	        <td height="40" colspan="4">
	        	<table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
			          <tr>
			            <td></td>
			          </tr>
	        	</table>
	        </td>
		  </tr>
		  <tr>
		  	 <td colspan="30">
		     <!--  table栏-->
		     
		     <form id="adjustStoreForm" action="<%=basePath%>/storeAction_adjustStoreInfo.action"  method="post">
			   <c:set var="storeBean" scope="request" value="${store}"/>
			    <table >
			       <tr>
		      		   <input type="hidden"  id="stStoreId"   name="store.stStoreId"  value="${storeBean.stStoreId}" />
		       			<td>设备合同号:<input type="text"  id="stContactNumber"   name="store.stContactNumber"  value="${storeBean.stSnNumber}" /></td>
		       			<td>部门信息:
		       				<select  id="stDepartMent"   name="stDepartMent"  >
		       					<c:set var="departList" scope="request" value="${department}"/>
	 	   						<c:forEach items="${departList}" var="bean"  varStatus="status">
									<option value="${bean.stDepartmentId}">${bean.stDepartmentName}</option>
								</c:forEach>
       						</select>
		       			</td>
		       			
		       			<td>设备维护人:<select  id="stContactEmployer"   name="store.stContactEmployer"  style="width:120px;" >
	       					<c:set var="admin" scope="request" value="${adminBean}"/>
	       					<c:choose> 
					            <c:when test="${empty admin}"> 
					              	 <option value="null"></option>
								</c:when> 
								<c:when test="${not empty admin}"> 
									<option value="${admin.stAdminNumber}">${admin.stAdminEmployer}</option>
								</c:when>
							</c:choose>
							</select>
						</td>
			 	    </tr>
			 	    <tr>
		 	    		<td>设备状态:
		 	    			<select  id="stState"   name="store.stState"  >
	       					<c:set var="storeState" scope="request" value="${storeState}"/>
	       					<c:choose> 
					            <c:when test="${empty storeState}"> 
					              	 <option value="null"></option>
								</c:when> 
								<c:when test="${not empty storeState}"> 
									<c:forEach items="${storeState}" var="bean"  varStatus="status">
										<option value="${bean.stCode}">${bean.stPameterName}</option>
									</c:forEach>
								</c:when>
							</c:choose>
							</select>
		 	    		</td>
						<td>设备位置:
							<select  id="stStoreLocation"   name="store.stStoreLocation"  >
	       					<c:set var="locationList" scope="request" value="${location}"/>
	       					<c:choose> 
					            <c:when test="${empty locationList}"> 
					              	 <option value="null"></option>
								</c:when> 
								<c:when test="${not empty locationList}"> 
									<c:forEach items="${locationList}" var="locationBean"  varStatus="status">
										<option value="${locationBean.stCode}">${locationBean.stPameterName}</option>
									</c:forEach>
								</c:when>
							</c:choose>
							</select>
						</td>
			 	    </tr>
			 	    <tr>
			 	    	<td>商户所在区域:
		 	    			<select  id="stArea"   name="stArea"  >
	       					<c:set var="arealist" scope="request" value="${area}"/>
	       					<c:choose> 
					            <c:when test="${empty arealist}"> 
					              	 <option value="null"></option>
								</c:when> 
								<c:when test="${not empty arealist}"> 
									<option value=""></option>
									<c:forEach items="${arealist}" var="areaBean"  varStatus="status">
										<option value="${areaBean.stAreaId}">${areaBean.stAreaName}</option>
									</c:forEach>
								</c:when>
							</c:choose>
							</select>
		 	    		</td>
		 	    		<td>设备所在商户:
		 	    			<select  id="stMerchantId"   name="store.stMerchantId"  style="width:120px;" >
	       					<c:set var="merchnatBean" scope="request" value="${merchant}"/>
	       					<c:choose> 
					            <c:when test="${empty merchnatBean}"> 
					              	 <option value="null"></option>
								</c:when> 
								<c:when test="${not empty merchnatBean}"> 
									<option value="${merchnatBean.stMerchantId}">${merchnatBean.stMerchantName}</option>
									<option value=""></option>
								</c:when>
							</c:choose>
							</select>
		 	    		</td>
			 	    </tr>
			 		</table>
			 	 </form>
		     </td>
		  </tr>
		  <!-- 翻页工具  -->
		  <tr>
		  <td colspan="8">
		  
		  <table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
			          <tr>
			            <td></td>
			          </tr>
	        	</table>
		   <c:set var="storeBean" scope="request" value="${storeDetail}"/>
				    <table >  
				        <tr>
				       			<td>SN编号:${storeBean.stSnNumber}</td>
				       			<td>设备名称:${storeBean.stStoreName}</td>
				       			<td>设备属性:${storeBean.stStoreName}</td>
				 	    </tr>
				 	    
				 	     <tr>
				       			<td>设备状态:${storeBean.stState}</td>
				       			<td>设备位置:${storeBean.stStoreLocation}</td>
				 	     </tr>
				 	     <tr>
				 	     		<td>设备所在商户:${storeBean.stMerchantName}</td>
				 	     		<td>设备所在商户编号:${storeBean.stMerchantNumber}</td>
				 	     		<td>设备合约编号:${storeBean.stContactNumber}</td>
				 	     		<td>设备维护人:${storeBean.stAdminEmployer}</td>
				 	     </tr>
				 	      <tr>
				 	     		<td>设备入库时间:${storeBean.stStoreTime}</td>
				 	    		<td>设备入库人:${storeBean.stStoreEmployer}</td>
								<td>设备修改时间:${storeBean.stModifyTime}</td>
								<td>设备修改人:${storeBean.stModifier}</td>
				 	     </tr>
				 	    <tr>
				 	    		<td>设备出场时间:${storeBean.stFactoryDate}</td>
				 	    		<td>设备单价:${storeBean.stStorePrice}</td>
								<td>设备厂商:${storeBean.stFactory}</td>
				 	    </tr>
				 	     <tr>
				 	    		<td>设备备注:${storeBean.stRemark}</td>
				 	    </tr>
				 	</table>
				 	</td>
				 	
		  </tr>
	      <tr>
	        <td height="40" colspan="4">
	        	<table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
			          <tr>
			            <td>
				 	</td>
			          </tr>
	        	</table>
	        </td>
	      </tr>
	      <tr>
	        <td width="2%">&nbsp;</td>
	        <td width="51%" class="left_txt"><img src="images/icon-mail2.gif" width="16" height="11"> <br>
	              <img src="images/icon-phone.gif" width="17" height="14"> </td>
	        <td>&nbsp;</td>
	        <td>&nbsp;</td>
	      </tr>
	</table>
    </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
</tr>
<tr>
   <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
   <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
   <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
</tr>
</table>
  </body>
</html>
